'use strict';

const info = {};

const common = function(req, res, next) {
    console.log(__filename);
    next();
};

module.exports.main = function(req, res, next) {
    res.send(Object.assign(info, { "api": req.path, "name": req.params.username }));
    next();
};

module.exports.list = function(req, res, next) {
    res.send(Object.assign(info, { "api": req.path, "name": req.params.username }));
    next();
};